package com.github.kezhenxu94.playground.java.miscellaneous;

import java.lang.reflect.Method;

/**
 * Created by com.ikezhenxu.java.study on 1/17/15.
 */
class AA {

	private int num;

	public AA() {
		this.num = 100;
	}

	public AA(int n) {
		this.num = n;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
}

class BB extends AA {

	public BB() {
		System.out.println("BB构造函数");
	}

}

public class ExtendsTest {

	public static void main(Method[] args) {
		BB mBB = new BB();
		System.out.println(mBB.getNum());
	}
}
